//
//  SEGMerchantProductModel.m
//  SEGCommunityBussinessDemo
//
//  Created by Clavis on 2019/5/14.
//  Copyright © 2019 Clavis. All rights reserved.
//

#import "SEGMerchantProductModel.h"

@implementation SEGMerchantProductModel

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"productDescription" : @"description"};
}

- (NSString *)shortStartTime {
    if (self.validStartTime.length >= 10) {
        return [self.validStartTime substringToIndex:10];
    }
    return self.validStartTime;
}

- (NSString *)shortEndTime {
    if (self.validEndTime.length >= 10) {
        return [self.validEndTime substringToIndex:10];
    }
    return self.validEndTime;
}

@end

